Repository navigation
fix(review): install bubblewrap before the review lanes run Claude Code - #760
Conversation
#756 set CLAUDE_CODE_SUBPROCESS_ENV_SCRUB=1 on both review attempts. Claude Code 2.1.300 on Linux refuses to start with the scrub on and no bubblewrap, and claude-code-action installs bubblewrap only when allowed_non_write_users is set, so every review lane failed while installing Claude Code. Install bubblewrap and socat before the first attempt, with apt retries and the AppArmor userns sysctl, and fail closed without bwrap. The scrub stays on. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AfcE6qXwStK92XAx21MG43
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Claude finished @kyle-sexton's task in 3m 49s —— View job Security review
Reviewed only the two changed files ( IMPORTANT — host-wide kernel-hardening weakening with no reset, on a caller-selectable runner Both new steps run This is the only This is a real trade-off the bubblewrap requirement forces (matches the upstream No other security issues found. The apt-get retry loop and bwrap presence check have no injection surface (no untrusted input reaches the Actions-hardening concerns (trigger safety, permissions, pinning) are zizmor's lane and out of scope here; this PR's triggers/permissions are unchanged. |
|
Claude finished @kyle-sexton's task in 4m 40s —— View job Code review
Scope: No blocking or advisory findings. Specifically verified:
Author-claimed, not independently re-run here: |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 86746973f7
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
claude-security-review has reviewed this pull request through bd64d9c; a later push is reviewed from there. |
|
claude-review has reviewed this pull request through bd64d9c; a later push is reviewed from there. |
…time Run the bubblewrap install only on Linux, skip apt-get where it is absent (bwrap must then be present), lift the AppArmor userns sysctl only on GitHub-hosted runners, and bound the step at one minute. The code lane's job timeout rises from 13 to 16 minutes; the security lane is already at the 16-minute ceiling, so its review step budget drops from 14 to 13 minutes to keep the measured 38 s of slack. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AfcE6qXwStK92XAx21MG43
|
Claude finished @kyle-sexton's task in 1m 36s —— View job Security review (incremental)
Scope: incremental diff only, since this lane's last review at No security issues found. This diff resolves the IMPORTANT finding from the prior round (host-wide, unreset AppArmor weakening on a potentially non-ephemeral runner, raised against
Actions-hardening concerns (trigger safety, permissions, pin changes) are zizmor's lane and out of scope here; nothing in this incremental diff touches triggers, permissions, or action pins. |
|
Claude finished @kyle-sexton's task in 7m 53s —— View job Code review
Scope: this commit only ( Verified correct:
Findings posted inline (both independently verified by a separate
Not independently run (sandboxed to read-only |
…ed in status (#813) Closes #657 ## Summary When a review step fails without leaving an execution file, and it neither timed out nor failed its Bun install, the lane reported `other`, and the status step printed "an unclassified failure". That case now gets its own class, `no-execution`. Both lanes' status steps also gain an arm for `install-failed`, which the classifier could already return but the status steps did not handle by name. ## Fix - `.github/actions/report-lane-outcome/classify.cjs`: with no execution file, the class is `timeout`, then `install-failed`, otherwise `no-execution`. An execution file that exists but cannot be parsed still classifies as `other`, which is outside this issue's scope. The class list in the header comment now includes `no-execution`. - `.github/actions/report-lane-outcome/action.yml`: the `execution-file` input description and the `failure-class` output description now name `no-execution`. - `pr-review.yml` and `pr-review-security.yml`: - the status steps get `install-failed)` and `no-execution)` case arms, placed before `*)`. Both fall through to the existing `exit 1`. - the `failure-class` output descriptions now list `install-failed` and `no-execution`. - `README.md`: the red-status list names `install-failed` and `no-execution`. Only line 1125 changed (one line inserted). - Tests: - `classify.test.cjs`: the existing no-execution-file test now asserts `no-execution`, including with explicit `timedOut: false, installFailed: false`. - `outcome-step.test.cjs`: two assertions that expected `other` for the no-file path now expect `no-execution`. - The existing `timeout` and `install-failed` tests are unchanged and pass. - Effect on other callers: - `run-claude-cli/lane.cjs` also calls `classifyExecutionFile`. A CLI leg that leaves no file and did not time out now reports `no-execution`. Its summary note falls back to the `other` note. - `intake-triage.yml`'s status allowlist maps any unknown class to `other`, so intake output does not change. - No step timeout was changed: `pr-review-security.yml:613` is still `timeout-minutes: 13`. ## Verification - `node --test .github/scripts/*.test.cjs`: 471 tests, 471 pass, 0 fail. - `node --test .github/scripts/*.test.cjs .github/actions/*/*.test.cjs`: 559 tests, 559 pass, 0 fail. Before the edit, the same command gave 559/559. After the classifier change, 2 `outcome-step` tests failed because they still asserted `other`; they were updated as described above. - `node --test .github/actions/*/*.test.cjs`: 88 tests, 88 pass, 0 fail. - `actionlint .github/workflows/pr-review.yml .github/workflows/pr-review-security.yml`: clean. - `grep -n "timeout-minutes: 13" .github/workflows/pr-review-security.yml`: line 613. ## Related - #811 (issue #761) adds `sandbox-unavailable` to the same README red-status paragraph, on lines 1127-1128. This PR changes only line 1125 and leaves line 1126 untouched, so the two hunks should not overlap. Whichever PR merges second must keep both sets of rows. - #691 added the `install-failed` class. #760 set the security step timeout to 13 minutes. Also related: #795. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
No related issue: org-wide outage fix; every AI review lane run since about 18:39Z 2026-10-17 fails while installing Claude Code.
Summary
#756 set
CLAUDE_CODE_SUBPROCESS_ENV_SCRUB: "1"on both review attempts inpr-review.ymlandpr-review-security.yml. Claude Code 2.1.300 (the version claude-code-action v1.0.250 installs) refuses to start on Linux with the scrub on and no bubblewrap:(claude-code-plugins run 39059470151.) The action's own "Install subprocess isolation dependencies" step runs only when
allowed_non_write_usersis set, which the review lanes do not set, so nothing installed bwrap.intake-triage.ymlsetsallowed_non_write_users: "*", so the action installs it there and that lane is unaffected.Fix
Add an "Install subprocess isolation" step before the first review attempt in both workflows: apt-get install
bubblewrapandsocatwith three retries, lift the Ubuntu 24.04 AppArmor userns restriction, and fail closed whenbwrapis missing. This matches the action's step and claude-code-plugins'setup-runner-isolationaction. The scrub stays on. The fallback attempt runs in the same job, so one install covers both.Verification
actionlintover both files: no new findings. The$/.github/actions/report-lane-outcomefinding was already onmain.node --test .github/scripts/*.test.cjs: 420 passed, 0 failed.Related
CLAUDE_CODE_SUBPROCESS_ENV_SCRUBrow, read 2026-10-17, does not mention the bubblewrap requirement);anthropics/claude-code-action@a26b07daction.yml, "Install subprocess isolation dependencies".🤖 Generated with Claude Code
https://claude.ai/code/session_01AfcE6qXwStK92XAx21MG43